package com.ebao.po.blog;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ebao.constants.UserType;

/**
 * @desc 收藏相册
 * @author snow
 * @date 2012-7-11
 */
@Entity
@Table(name = "T_Collect_Album")
public class TCollectAlbum implements Serializable {

	private static final long serialVersionUID = 5500421460573647275L;
	
	private Long id;
	private Long albumId;				// 收藏的相册Id,若原相册已删此设计不会导致数据库报错,无引用提示用户该相册已被删除
	private UserType collecterType;		// 收藏者类型user/doctor
	private String collecterId;			// 收藏者Id
	private String collectDate;			// 收藏日期

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getAlbumId() {
		return albumId;
	}

	public void setAlbumId(Long albumId) {
		this.albumId = albumId;
	}

	public UserType getCollecterType() {
		return collecterType;
	}

	public void setCollecterType(UserType collecterType) {
		this.collecterType = collecterType;
	}

	public String getCollecterId() {
		return collecterId;
	}

	public void setCollecterId(String collecterId) {
		this.collecterId = collecterId;
	}

	@Column(length = 19)
	public String getCollectDate() {
		return collectDate;
	}

	public void setCollectDate(String collectDate) {
		this.collectDate = collectDate;
	}

}
